package packagetry;

public class javaFunction {

    public static void main(String[] args) {
        int[] arr= {12,13,14,15,16};
        traverse(arr);

    }
    public static void traverse(int[] arr){
        System.out.print("[");
        for(int i =0 ; i <arr.length;i++){
            System.out.print(arr[i]);
            if(i<arr.length-1){
                System.out.print(",");
            }
        }
        System.out.print("]");
    }

}
